﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XMK.Framework.Model
{
    [Serializable]
    /// <summary>
    /// 共通返回数据对象
    /// </summary>
    public class CommonDataInfo
    {
        public MsInfo ms { get; set; }
        /// <summary>
        /// 返回对象
        /// </summary>
        public object list { get; set; }
    }
    [Serializable]
    public class CommonDataInfo<T>
    {
        public MsInfo ms { get; set; }
        /// <summary>
        /// 返回对象
        /// </summary>
        public T list { get; set; }
    }
    [Serializable]
    public class CommonDataInfos<T>
    {
        public MsInfo ms { get; set; }
        /// <summary>
        /// 返回对象
        /// </summary>
        public List<T> list { get; set; }
    }
    /// <summary>
    /// 用友返回公共信息
    /// </summary>
    [Serializable]
    public class MsInfo
    {
        /// <summary>
        /// 操作代码【0：操作成功；非0:操作失败】
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 返回操作信息
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 接口调用时间（毫秒）
        /// </summary>
        public string differTime { get; set; }
        /// <summary>
        /// 为日志记录使用的LOGID
        /// </summary>
        public string logId { get; set; }
        /// <summary>
        /// 调用方法名
        /// </summary>
        public string methodName { get; set; }        
        /// <summary>
        /// 当前页
        /// </summary>
        public int curPage { get; set; }
        /// <summary>
        /// 每页数
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int pageCount { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public long totalCount { get; set; }
    }
}
